/**
 * Copyright:Copyright(c)2014-2017
 * Company:厦门市易致达物联网科技有限公司
 * @version 1.0
 */
package shop.controller.front.news;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import shop.core.FrontBaseController;
import shop.core.Services;
import shop.core.common.bean.JSONResult;
import shop.services.front.news.NewsService;
import shop.services.front.news.bean.News;

import javax.annotation.Resource;
import java.util.List;

/**   
 * @类名称：NewsController
 * @创建人：Ltz   
 * @创建时间：2017-09-20 下午15:47:58      
 * @版本号：1.0
 * @描述：     
 */
@Controller
@RequestMapping("/front/news/")
public class NewsController extends FrontBaseController<News> {
    @Resource
    private NewsService newsService;
    @Override
    public Services<News> getService() {
        return newsService;
    }

    /**
     * 跳转到资讯首页（列表）
     *
     * @return
     */
    @RequestMapping("toNewsList")
    public String toNewsList() {
        return "/front/news/newsList";
    }

    /**
     * 跳转到资讯详情页面
     *
     * @return
     */
    @RequestMapping("toNewsDetail")
    public String toNewsDetail() {
        return "/front/news/newsDetail";
    }
}
